/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rie06.openvoip.server;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

/**
 *
 * @author clement
 */
public class ServerMessage_Conversation extends ServerMessage implements Serializable {

    private UUID conversationUUID;
    private Map contactList;
    private Map contactListCall;
    private boolean masterPause;
    private String text;

    public ServerMessage_Conversation(String type, int code, UUID conversationUUID, UUID from) {
        super(type, code, from);
        this.conversationUUID = conversationUUID;
        this.contactList = new HashMap();
    }

    public ServerMessage_Conversation(String type, int code, UUID conversationUUID, UUID from, Map contactList, Map contactListCall, boolean masterOnline) {
        super(type, code, from);
        this.conversationUUID = conversationUUID;
        this.contactList = contactList;
        this.contactListCall = contactListCall;
        this.masterPause = masterOnline;
    }

    public ServerMessage_Conversation(String type, int code, UUID conversationUUID, UUID from, String text) {
        super(type, code, from);
        this.conversationUUID = conversationUUID;
        this.text = text;
    }

    public UUID getConversationUUID() {
        return conversationUUID;
    }

    public Map getContactList() {
        return contactList;
    }

    public Map getContactListCall() {
        return contactListCall;
    }

    public boolean isMasterPause() {
        return masterPause;
    }
    
    public String getText() {
        return text;
    }
    
}
